//
//  APIStringMacros.h
//  express
//
//  Created by mac1 on 15/9/28.
//  Copyright © 2015年 longchen. All rights reserved.
//

#ifndef APIStringMacros_h
#define APIStringMacros_h

#ifdef DEBUG
//Debug状态下的测试API
#define API_BASE_URL_STRING @"https://api.express.com/"

#else
//Release状态下的线上API
//#define API_BASE_URL_STRING @"https://api.express.cn/"
#endif


//短信注册，填入手机号获取短信验证码，参数A手机号码，参数B类型type
#define GET_SMS_VERIFICATION(A, B)   [NSString stringWithFormat:@"%@%@", API_BASE_URL_STRING,  [NSString stringWithFormat:@"employee/getauthcode?phone=%@&type=%@", A, B]]


//短信注册，发送短信验证码
#define POST_SMS_VERIFICATION [NSString stringWithFormat:@"%@%@", API_BASE_URL_STRING,  @"/employee/register"]


//手机+密码登陆
#define POST_LOGON [NSString stringWithFormat:@"%@/employee/login", API_BASE_URL_STRING]


//订单列表 参数A token ,参数B用户id, 参数3 状态
#define GET_ORDER_LIST(A, B, C) [NSString stringWithFormat:@"%@%@", API_BASE_URL_STRING, [NSString stringWithFormat:@"/employee/order/list?token=%@&userid=%@&status=%@", A, B, C]]


////快递员查询订单列详情
#define GET_EMPLOYEE(A, B, C) [NSString stringWithFormat:@"%@%@", API_BASE_URL_STRING, [NSString stringWithFormat:@"/employee/detail?token=%@&userid=%@&deviceid=%@", A, B, C]]


#endif /* APIStringMacros_h */
